/*
 * @Author: 谢小康 2170673706@qq.com
 * @Date: 2023-11-22 09:17:47
 * @LastEditors: 谢小康 2170673706@qq.com
 * @LastEditTime: 2024-01-17 18:10:14
 * @FilePath: \My-bolg\server\router\home.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

const express = require('express');
const router = express.Router();
const {
    updataconfig,
    getconfig,
    addconfigview
}=require("../controller/config.js")
const { auth } = require('../util/user');
const {isSuperAdmin} = require('../controller/user.js')
/* 修改配置 */
router.post('/updataconfig', auth,isSuperAdmin,updataconfig)
/* 获取配置 */
router.get('/getconfig',getconfig)
/* 添加访问量 */
router.get("/addsiteview",addconfigview)
module.exports = router